package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Hayson
 * @since 2021/7/5 23:44
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_publish_order_item")
public class TPublishOrderItem {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "publish_order_id")
    private String publishOrderId;

    @TableField(value = "category_id")
    private Long categoryId;

    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 0小时 1天 2周 3月
     */
    @TableField(value = "unit")
    private Integer unit;

    @TableField(value = "tips")
    private String tips;

    @TableField(value = "add_time")
    private LocalDateTime addTime;
}